package com.freecloud.framework.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.stereotype.Repository;

/**
 * 基础Repository类
 * @Author: maomao
 * @Date: 2019-06-17 09:53
 */
@NoRepositoryBean
public interface BaseDao<T, ID> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T>
{
    /**
     * 根据主键ID批量删除
     * @param ids
     * @return
     */
    int deleteBatch(ID[] ids);

}
